import "./css/popup.css";
//window.open("first.html");


document.addEventListener("DOMContentLoaded",()=>{

    let div= document.querySelector("div[class*=list-group]");

    let hrefs=["first.html","second.html","third.html","forth.html","fifth.html"];

    for(let i=0;i<5;i++){
        let a=document.createElement("a");
        a.onclick=()=>window.open(hrefs[i]);
        a.classList.add("list-group-item");
      //  a.classList.add("list-group-item-info");
        a.innerText=`第${i+1}步`;
        div.appendChild(a);
    }

    let map=new Map();
    map.set("getInfo.html","查询卡信息");

    for(let [key,value] of map.entries()){
        let a=document.createElement("a");
        a.onclick=()=>window.open(key);
        a.classList.add("list-group-item");
        //  a.classList.add("list-group-item-info");
        a.innerText=value;
        div.appendChild(a);
    }





});
